]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Fix scroll bugginess in summary items
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 25 Oct 2011 00:06:39 +0000 (20:06 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 2 May 2012 20:04:46 +0000 (16:04 -0400)
Two nested scroll views were fighing with each other. The reason isn't
particularly important and has to do with some silliness involving
StAdjustment. The visible effect was that scrolling up and down when
in a summary item view would appear to be glitchy, and sometimes not
work at all.

To fix, make sure that the scroll view we don't care about is disabled
when in a summary mode.

https://bugzilla.gnome.org/show_bug.cgi?id=661615

js/ui/messageTray.js

index 19b3baf9ae4fc27516be69b5027d678e88a8b890..7358b289d26e38fa93194b6b2880459b1dcba4c9 100644 (file)
@@ -586,8 +586,10 @@ const Notification = new Lang.Class({
 
     enableScrolling: function(enableScrolling) {
         this._scrollPolicy = enableScrolling ? Gtk.PolicyType.AUTOMATIC : Gtk.PolicyType.NEVER;
-        if (this._scrollArea)
+        if (this._scrollArea) {
             this._scrollArea.vscrollbar_policy = this._scrollPolicy;
+            this._scrollArea.enable_mouse_scrolling = enableScrolling;
+        }
     },
 
     _createScrollArea: function() {